<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MarkItUp.Master" 
Inherits="System.Web.Mvc.ViewPage<Wikey.Entity.Space>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Main" runat="server">

    <h2>Look</h2>
    <%= ViewData.Model.Name %>
    <%= ViewData.Model.Description %>
    
    <a href="<%= Html.ResolveUrl(String.Format("~/Page/Create/{{{1}@{0}}}/" , ViewData.Model.FriendlyUrlName , ViewData.Model.Id)) %>">Add Page </a>
    <h3> Pages </h3>
    <ul id="PageList">
    <% foreach (var page in ViewData.Model.Pages)  {%>
         <li>
            <%= Html.ActionLink( page.Name , page.FriendlyName,"Pages") %>
            <div class="page-content">
              <%= page.Description %>
            </div>
            <hr />
         </li>   
      <%  } %>
    </ul>
    
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
